package test;

import com.santi.framework.common.constants.CommonConstants;
import com.santi.framework.dictionary.impl.DictionaryFactory;
import com.santi.framework.dictionary.impl.DictionaryImpl;
import com.santi.framework.dictionary.service.Dictionary;
import com.santi.framework.dictionary.vo.WordVo;
import com.santi.framework.filemanager.impl.FileReaderImpl;
//import com.santi.framework.filemanager.vo.FileVo;

public class EnglishFileReader extends FileReaderImpl {

	public EnglishFileReader(String fileName) throws Exception {
		super(fileName);
		// TODO Auto-generated constructor stub
	}
 public static void main(String arg[]){
	// FileVo fileVo = new FileVo();
	 try {
		 System.out.println(".......ppppppppppppppppp...............Reading File........");
		//String fileName="E:\\SinuDicApplications\\SantiApplications\\framework\\src\\com\\santi\\framework\\resources\\engWordOnly.txt";
		String fileName = CommonConstants.ENGLISH_DATA_FILE_PATH + "engWordOnly.txt";
                DictionaryImpl odiyaSic= (DictionaryImpl)DictionaryFactory.getInstance().getDictionary("EN");
		//int size=odiyaSic.get
               System.out.println("........odiyaSic......."+odiyaSic.getDictionarySize());       
              //abort
              WordVo wordVo= odiyaSic.getWordVo("abort");
              
                System.out.println("........odiyaSic......."+wordVo.toString());      
               
               // for(String word:odiyaSic.getWordList()){
                 //   System.out.println("........22222222222......word..."+word);
               // }
                //fileVo.setFilePathWithName(fileName);
//		 EnglishFileReader englishFileReader = new EnglishFileReader("english_odia.dic");
//		System.out.println("........22222222222................Reading File........");
//		for (String line:englishFileReader)
//		{
//			System.out.println("........line......."+line);
//		}
	} catch (Exception e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
 }
}
